package ControlLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class AddressCtrTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class AddressCtrTest
{
    /**
     * Default constructor for test class AddressCtrTest
     */
    public AddressCtrTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void getPerson()
    {
        ControlLayer.AddressCtr addressC1 = new ControlLayer.AddressCtr();
        addressC1.getPerson(1);
    }

    @Test
    public void createPerson()
    {
        ControlLayer.AddressCtr addressC1 = new ControlLayer.AddressCtr();
        addressC1.addPerson(1234, "Mig", "Her", "9000", "Aalborg", "88888888");
    }

    @Test
    public void removePerson()
    {
        ControlLayer.AddressCtr addressC1 = new ControlLayer.AddressCtr();
        addressC1.removePerson(1);
    }

    @Test
    public void updatePerson()
    {
        ControlLayer.AddressCtr addressC1 = new ControlLayer.AddressCtr();
        addressC1.updatePerson(1234);
    }

    @Test
    public void listAllPersons()
    {
        ControlLayer.AddressCtr addressC1 = new ControlLayer.AddressCtr();
        addressC1.listAllPersons();
    }

    @Test
    public void addPerson()
    {
        ControlLayer.AddressCtr addressC1 = new ControlLayer.AddressCtr();
        addressC1.addPerson(1234, "Mig", "Her", "9000", "Aalborg", "88888888");
    }
}






